package com.chzc.fm.duotin.bean.channel;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/30.
 */
public class Play implements Serializable {

    /**
     * id : 7983
     * title : 看看财经943期 万科董事会断崖式代谢将对企业造成巨震？.mp3
     * describe : 看看财经：股票与商业
     * href : http://c203.duotin.com/M00/43/E9/wKgB5VdzmLiARo0rAAxWFMsWG7o281.mp3
     * image_url : http://c3.duotin.com/i1/DT/eiLtqNLJpZii1Ms57aO6ZHHx3Xynm-rq0JJremy1ZLE.jpg
     * end_time :
     * cur_time :
     * start_time :
     */

    private int id;
    private String title;
    private String describe;
    private String href;
    private String image_url;
    private String end_time;
    private String cur_time;
    private String start_time;

    public static Play objectFromData(String str) {

        return new Gson().fromJson(str, Play.class);
    }

    public static List<Play> arrayPlayFromData(String str) {

        Type listType = new TypeToken<ArrayList<Play>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public String getCur_time() {
        return cur_time;
    }

    public void setCur_time(String cur_time) {
        this.cur_time = cur_time;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }
}
